//
//  NSNumber+Helper.m
//  lvfj
//
//  Created by lvfeijun on 2021/7/5.
//  Copyright © 2021 Goudu KuaiEx Technology(Shenzhen)Co.,ltd. All rights reserved.
//

#import "NSNumber+Helper.h"

@implementation NSNumber (Helper)

// 将阿拉伯数字转成中文大写 例如 12 -> 十二
static inline NSString * capitalizeFormatNum(NSNumber *num) {
    NSNumberFormatter *f = [[NSNumberFormatter alloc] init];
    f.numberStyle = NSNumberFormatterSpellOutStyle;
    NSLocale *locale = [[NSLocale alloc] initWithLocaleIdentifier:@"zh_Hans"];
    f.locale = locale;
    return  [f stringFromNumber:num];
}

@end
